#pragma  once

#include "Common.h"

#include "organ/Organ.h"

class Assembler
{
protected:
	std::vector< Organ* > _Organs[OrganTypeCount];
public:
	Assembler();
	virtual ~Assembler();
	virtual ErrorCode Init() = 0;
	virtual ErrorCode AssemblyOrgan(Organ* pOrgan);

	virtual ErrorCode Update(uint32 dtTime);

	uint32  GetOrganCount(OrganType organType);
	Organ*  GetOrgan(OrganType organType, uint32 orgenId );
};